'use strict';

/**
 * @param {Egg.Application} app - egg application
 */
module.exports = app => {
  const { router, controller } = app;
  router.get('/', controller.home.index);
  //新增
  router.post('/api/put',controller.list.add);
  //修改
  router.put('/api/update',controller.list.update);
  //查询
  router.get('/api/bookslist',controller.list.bookslist);
  //删除
  router.delete('/api/del',controller.list.del);
};
